package com.hoas.quicksdk.api.oss;

import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;

public interface OssClient {

    boolean simpleUpload(String fileName, InputStream in);
    boolean simpleUpload(String fileName, InputStream in, Long expireTime);
    boolean simpleUpload(String fileName, File file);
    boolean simpleUpload(String fileName, File file, Long expireTime);

    boolean simpleUpload(String bucketName, String fileName, InputStream in);
    boolean simpleUpload(String bucketName, String fileName, InputStream in, Long expireTime);

    boolean simpleUpload(String bucketName, String fileName, File file);

    boolean simpleUpload(String bucketName, String fileName, File file, Long expireTime);

    boolean uploadBigFile(String bucketName, String fileName, File file);

    boolean uploadBigFile(String bucketName, String fileName, File file, Long expireTime);

    InputStreamReader simpleDownload2InputStream(String bucketName, String fileName);

    String getViewPath(String fileName);

    String getVideoSnapshotUri(String resourceUrl, int width, int height);


}
